GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:08:35 +0000 (15:08 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:58 +0000 (15:39 +0100)
gtk/gtkthemingengine.c
gtk/gtkthemingengine.h

index 2b9c4ce8dcb2dc9a787d26afe5023d534f2cb028..e254161141d1869d010629230ca2acbe96901c7a 100644 (file)
@@ -546,17 +546,16 @@ gtk_theming_engine_get_style (GtkThemingEngine *engine,
  * gtk_theming_engine_lookup_color:
  * @engine: a #GtkThemingEngine
  * @color_name: color name to lookup
- * @color: (out) (transfer full): Return location for the looked up color
+ * @color: (out): Return location for the looked up color
  *
  * Looks up and resolves a color name in the current style's color map.
- * The returned color must be freed with gdk_rgba_free().
  *
  * Returns: %TRUE if @color_name was found and resolved, %FALSE otherwise
  **/
 gboolean
-gtk_theming_engine_lookup_color (GtkThemingEngine  *engine,
-                                 const gchar       *color_name,
-                                 GdkRGBA          **color)
+gtk_theming_engine_lookup_color (GtkThemingEngine *engine,
+                                 const gchar      *color_name,
+                                 GdkRGBA          *color)
 {
   GtkThemingEnginePrivate *priv;
 
index 128070e068c4e8bf9102d40f0f6d60adf898c64e..64b39216e2b8faa024cd23183ecb5c57219f971b 100644 (file)
@@ -198,9 +198,9 @@ void gtk_theming_engine_get_style_valist   (GtkThemingEngine *engine,
 void gtk_theming_engine_get_style          (GtkThemingEngine *engine,
                                             ...);
 
-gboolean gtk_theming_engine_lookup_color (GtkThemingEngine  *engine,
-                                          const gchar       *color_name,
-                                          GdkRGBA          **color);
+gboolean gtk_theming_engine_lookup_color (GtkThemingEngine *engine,
+                                          const gchar      *color_name,
+                                          GdkRGBA          *color);
 
 G_CONST_RETURN GtkWidgetPath * gtk_theming_engine_get_path (GtkThemingEngine *engine);